package top.yjp.jtf.plugin;

import com.intellij.extapi.psi.PsiFileBase;
import com.intellij.openapi.fileTypes.FileType;
import com.intellij.psi.FileViewProvider;
import org.jetbrains.annotations.NotNull;

/**
 * Excel语言的PSI文件
 */
public class ExcelFile extends PsiFileBase {
    public ExcelFile(@NotNull FileViewProvider viewProvider) {
        super(viewProvider, ExcelLanguage.INSTANCE);
    }

    @NotNull
    @Override
    public FileType getFileType() {
        return ExcelFileType.INSTANCE;
    }

    @Override
    public String toString() {
        return "Excel File";
    }
}